package com.ljs.threadpooldemo.controller;

import com.ljs.threadpooldemo.entity.CurlRequest;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CurlController {
    @PostMapping("/curlPost")
    public CurlRequest curlPost(@RequestBody CurlRequest curlRequest){
        return curlRequest;
    }

    @GetMapping("/curlGet")
    public CurlRequest curlGet(CurlRequest curlRequest){
        return curlRequest;
    }
}
